<?php

namespace App\Http\Models;

class AdminRoleNode extends BaseModel
{

    protected $table = 'admin_role_node';
    protected $fillable = ['role_id', 'node_id'];

    /**
     * 获取与权限表关联的节点
     */
    public function nodes()
    {
    	return $this->hasOne('App\Http\Models\AdminNode', 'id', 'node_id');
    }

}
